package com.train.mgr.modules.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.train.common.model.PageResult;
import com.train.mgr.modules.biz.dto.request.CustQueryReqDTO;
import com.train.mgr.modules.biz.dto.request.CustReqDTO;
import com.train.mgr.modules.biz.dto.response.CustDetailRespDTO;
import com.train.mgr.modules.biz.dto.response.CustListRespDTO;
import com.train.mgr.modules.biz.entity.Customer;
import com.train.mgr.modules.system.entity.User;

public interface CustomerService extends IService<Customer> {


    boolean add(CustReqDTO body);

    boolean update(CustReqDTO body);

    CustDetailRespDTO findById(Long custId);

    PageResult<CustListRespDTO> page(CustQueryReqDTO params);

    User findUserByCustId(Long custId);

    boolean setEmpCheckMode(Long customerId, Integer checkMode);

    Boolean checkCustomerCode(String code);
}
